package com.etc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.type.JdbcType;

/**
 * @Author kalista
 * @Description
 * @Date 2021/2/26  9:20
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
@TableName("t_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "username",jdbcType = JdbcType.VARCHAR)
    private String username;

    @TableField(value = "password",jdbcType = JdbcType.VARCHAR)
    private String password;

    @TableField(value = "sex",jdbcType = JdbcType.INTEGER)
    private Integer sex;

    @TableField(value = "update_count",jdbcType = JdbcType.INTEGER)
    private Integer updateCount;

    @TableField(value = "version",jdbcType = JdbcType.INTEGER)
    private Integer version;
}
